package com.paziy.jan.graphics;

public class Background extends Graph {

    private static final Color DEFAULT_COLOR = new Color("White");
    private static final String DEFAULT_TEXTURE = "none";

    private String texture = DEFAULT_TEXTURE;

    public Background() {
        super(DEFAULT_COLOR);
    }

    public Background(Color color) {
        super(color);
    }

    public Background(String texture) {
        this.texture = texture;
    }

    public Background(Color color, String texture) {
        super(color);
        this.texture = texture;
    }

    public String getTexture() {
        return texture;
    }

    public boolean setTexture(String newTexture) {
        texture = newTexture;

        return true;
    }

    @Override
    public void draw() {
        System.out.println(toString());
    }

    @Override
    public String toString() {
        return "Background: " + getColor() + "; texture is " + texture;
    }
}
